﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Person
    {
        private int id;
        private string name;
        private char sex;
        private int cardid;
        private int tel;
        public void Hello() 
        {
            Console.WriteLine("编号为{0}", this.id);
            Console.WriteLine("姓名为{0}", this.name);
            Console.WriteLine("性别为{0}", this.sex);
            Console.WriteLine("身份证号为{0}", this.cardid);
            Console.WriteLine("联系方式为{0}", this.tel);
        }
        public Person() 
        {
            
        }
        public Person(int id , string name , char sex , int cardid , int tel) 
        {
            this.ID = id;
            this.Name = name;
            this.Sex = sex;
            this.Cardid = cardid;
            this.Tel = tel;
        }
        public int ID
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public char Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        }
        public int Cardid
        {
            get { return this.cardid; }
            set { this.cardid = value; }
        }
        public int Tel
        {
            get { return this.tel; }
            set { this.tel = value; }
        }
    }
}
